import request from '@/utils/request.js'
//用户查询车辆详细
export const apifindCarByUserId = (userId) => {
	return request.get('blade-store/wx/enterprise/car/info/findCarByUserId?userId=' + userId)
}

//添加品牌
export const apisortByInitial11 = () => {
	return request.get("blade-sale/wx/car/brand/info/wx/sortByInitial11")
}
//添加车系
export const apigetByBrandId = (id) => {
	return request.get("blade-sale/wx/car/brand/desc/wx/getByCarId?carId="+id)
}
//查看车详情
export const apidetail= (params) => {
	return request.get("blade-sale/wx/car/brand/desc/wx/detail",{
		'params': params,
		dataType: "application/x-www-form-urlencoded"
	})
}
// 添加车辆
export const apidriverSaveCar=(params)=>{
	return request.post("blade-store/wx/enterprise/car/info/driverSaveCar",params)
}
//车牌查车辆
export const apifindCarByCarNumber=(name)=>{
	return request.post("blade-store/wx/enterprise/car/info/findCarByCarNumberForSaveCar?carNumber="+name)
}
//车系
export const apigetByBrand=(id)=>{
	return request.get("blade-sale/wx/car/series/desc/wx/getByBrandId?carBrandId="+id)
}
//询问低价
export const apisubmit=(params)=>{
	return request.post("blade-sale/wx/reservation/order/submit",params)
}
//企业查车俩信息
export const apigetAllCarByStatus= (params) => {
	return request.get("blade-store/wx/enterprise/car/info/getAllCarByStatus",{
		'params': params,
		dataType: "application/x-www-form-urlencoded"
	})
}
//企业查车辆分页信息
export const apiGetCarManagerPage= (params) => {
	return request.get("blade-store/wx/enterprise/car/info/getCarManagerPage",{
		'params': params,
		dataType: "application/x-www-form-urlencoded"
	})
}

//添加车系
export const apiGetRecommendList = () => {
	return request.get("blade-sale/wx/car/series/desc/getRecommendList")
}

// 通过车辆ID 查询车辆绑定信息
export const apiFindCarByCarId=(carId)=>{
	return request.get("blade-store/wx/enterprise/car/info/findCarByCarId?carId="+carId)
}
// 通过车辆ID 解绑车辆
export const apiUnBindCar=(carId)=>{
	return request.get("blade-store/wx/enterprise/car/info/unBindCar?id="+carId)
}